package com.service;

import com.dao.GoodsDao;
import com.dao.TopsDao;
import com.entity.Goods;
import com.entity.Tops;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuronghua
 * @version 1.0
 * @data 2020-09-2020/9/24 10:17
 * @desc
 */
@Service
public class TopService {
    @Autowired
    private TopsDao topsDao;

    @Autowired
    private GoodsDao goodDao;


    public Tops getByGoodIdAndType(int goodId,byte type){
        return topsDao.selctByGoodIdAndType(goodId,type);
    }


}
